package com.blockmeta.bbs.businesslibrary.constant;

import com.blockmeta.bbs.baselibrary.BuildConfig;
import com.blockmeta.bbs.baselibrary.net.Host;

/**
 * Created by author on 2017/12/26.
 */

public class NetConstant {

    public static final String USER_INIT = Host.MAIN_URL + "/quhui/init";

    public static final String SMS = Host.MAIN_URL + "/accountopen/smsLogin";

    //获取账号基本信息
    public static final String USER_INFO = Host.MAIN_URL + "/account/user";
    public static final String USER_INFO_BIND = Host.MAIN_URL + "/account/getUserInfoAndBind";
    public static final String USER_INFO_EDIT = Host.MAIN_URL + "/account/unifyUpdateUserInfo";
    public static final String ACCOUNT_BIND = Host.MAIN_URL + "/accountopen/bind";


    ////////////////////////////////////////以下为没用的url，暂时不删除

    public static final boolean IS_TEST_ENV = BuildConfig.API_HOST.contains("pref");
    //获取首页顶部Tab标签
    public static final String HOME_TAB = Host.MAIN_URL + "/navigation";

    //获取每一个列表数据  coins
    public static final String HOME_LIST_COINS = Host.MAIN_URL + "/tickers/coin";

    //获取每一个列表数据  exchangge
    public static final String HOME_LIST_EXCHANGE = Host.MAIN_URL + "/tickers/exchange";

    //获取交易详情页面数据
    public static final String COINS_DETAIL = Host.MAIN_URL + "/ticker";

    //深度交易的历史数据街口
    public static final String DETAIL_DEPTH = Host.MAIN_URL + "/depth";

    //请求Token地址 请求初始化接口
    public static final String USER_NEW_INIT = "http://115.29.214.30:8086" + "/v1/init";

    //短信验证码
    // TODO: 2018/10/15

    //手机号码登陆
    public static final String USER_PHONE_OLD = Host.MAIN_URL + "/user";
    public static final String USER_PHONE = Host.MAIN_URL + "/v1/login/account";
    public static final String USER_PHONE_PHONE = Host.MAIN_URL + "/v1/login/mobile";

    //获取论坛最新帖子列表数据
    public static final String BBS_LIST_PHP = BuildConfig.API_HOST + "/appphp/app_forum/app-forum-thread/list";
    //不用这个 这个是给网站用的Host.MAIN_URL + "/bbs";
    public static final String BBS_LIST = BBS_LIST_PHP;
    //社区活动搜索
    public static final String BBS_ACTIVE_SEARCH = Host.MAIN_URL_WITHOUT_GATE+"/appphp/app_search/threads/search-posts";

    //获取论坛最新帖子详情作者数据
    public static final String BBS_HOT_DETAIL_AUTHOR = Host.MAIN_URL + "/bbs?tid=";

    //获取论坛最新帖子详情评论数据
    public static final String BBS_HOT_DETAIL_COMMENT = Host.MAIN_URL + "/bbs/comments";

    //Coins搜索接口
    public static final String COINS_SEARCH_RESULT = Host.MAIN_URL + "/search/coins";

    //块讯
    public static final String NEW_FAST = Host.MAIN_URL + "/flash";

    //新快讯支持看涨看空
    public static final String BLOCK_NEWS = Host.MAIN_URL + "/v1/flash";

    //微博页面数据
    public static final String NEWS_WEIBO = Host.MAIN_URL + "/weibo";

    //TODO 新版资讯api
    //新闻列表
    public static final String NEWS_INFO_LIST = Host.MAIN_URL + "/news";
    public static final String SEARCH_NEWS_LIST = Host.MAIN_URL_WITHOUT_GATE + "/appphp/app_search/posts/search-posts";
    public static final String FAST_DETAIL = Host.MAIN_URL_WITHOUT_GATE + "/appphp/bbt_api/news/single";

    public static final String NEWS_INFO_LIST_V1 = Host.MAIN_URL + "/v-temp/news";
    public static final String NEWS_INFO_LIST_V1_DETAIL = Host.MAIN_URL + "/v-temp/news/detail/";
    public static final String NEWS_INFO_LIST_V1_COMMENT = Host.MAIN_URL + "/v-temp/news/comment";


    //自选列表
    public static final String MY_CHOICE = Host.MAIN_URL + "/optional";

    //排行列表
    public static final String RANK_LIST = Host.MAIN_URL + "/ranking";

    //活动列表数据
//    public static final String ACTIVIE_LIST = Host.MAIN_URL + "/activities";
    public static final String ACTIVIE_LIST = Host.MAIN_URL_WITHOUT_GATE + "/appphp/app_forum/forum-thread/list";
    // TODO: 2018/10/15
    //三方登陆
    public static final String SOCIAL_LOGIN_OLD = Host.MAIN_URL + "/v1/login/social";
    public static final String SOCIAL_LOGIN = Host.MAIN_URL + "/v1/login/social";

    //新闻详情 评论
    public static final String NEWS_COMMENTS = Host.MAIN_URL + "/news/comments";

    //新闻点赞 点踩
    public static final String NEWS_ZAN = Host.MAIN_URL + "/news/point";

    //获取报名需要的from表单  提交也是这个接口
    public static final String ACTIVE_GETFORM = Host.MAIN_URL + "/activity/form";

    //获取报名需要的from表单 (新)
    public static final String APPLY_FORM = "http://app_api.8btc.com/activity/applyform";

    //活动报名 接口
    public static final String Active_Sign = Host.MAIN_URL + "/activity/apply/join";

    //上传图片
    public static final String UPDATE_PIC = "http://media.8btc.com/post/attach";

    //收藏新闻列表

    public static final String GET_COLLECTION_NEWS = Host.MAIN_URL + "/mynews/";
    public static final String GET_COLLECTION_NEWS_V1 = Host.MAIN_URL + "/v-temp/mynews/";

    //论坛收藏列表
    public static final String GET_COLLECTION_BBS = Host.MAIN_URL + "/mybbs";


    //添加新闻喜欢
    public static final String ADD_NEWS_FAV = Host.MAIN_URL + "/news/favorites/";

    //添加论坛喜欢
    public static final String ADD_BBS_FAV = Host.MAIN_URL + "/bbs/favorites";

    //提交活动表单地址
    public static final String SUBMIT_ACTIVE_FORM = Host.MAIN_URL + "/activity";

    //收藏删除新闻资讯
    public static final String DELETE_COLLECTION_NEWS = Host.MAIN_URL + "/news/favorites/del";

    //我的消息

    public static final String MY_MESSAGE = Host.MAIN_URL + "/message?";

    //反馈历史
    public static final String FEEDBACK_HISTORY = Host.MAIN_URL + "/user/feedback";

    //币种排行详情
//    public static final String RANK_DETAIL = Host.MAIN_URL + "/ranking/detail/";
    public static final String RANK_DETAIL = Host.MAIN_URL + "/coin/f10/base/";

    //邀请历史的数据
    public static final String INVATE_HISTORY = Host.MAIN_URL + "/invite";

    //服务端绑定token
    public static final String UPLOAD_XGTOKEN = Host.MAIN_URL + "/token";
    //添加平台预警
    public static final String PLATFORM_WARNING = Host.MAIN_URL + "/platform";

    //添加差价预警
    public static final String DIFF_WARNING = Host.MAIN_URL + "/platform/diff";
    //获取同一个交易对的交易所列表
    public static final String EXCHANGE_LIST = Host.MAIN_URL + "/platform/diff/exchange?pair=%s";
    //修改密码
    public static final String MODIFY_PWD = Host.MAIN_URL + "/user/password";

    //获取活动用户申请 列表
    public static final String ACTIVE_APPLYLIST = Host.MAIN_URL + "/activity/applylist";

    //获取触发过的预警列表 包括平台预警和差价预警
    public static final String WARNING_HISTORY = Host.MAIN_URL + "/warning/his";

    //获取资金流向数据
    public static final String FUND_FLOW = Host.MAIN_URL + "/coin/finance";

    //获取Ping++ charge 字段
    public static final String PINGPP_CHARGE = Host.MAIN_URL + "/pay";

    //获取twitter信息
    public static final String TIWTTER = Host.MAIN_URL + "/twitter/";

    //获取币种f10社区信息及情感得分
    public static final String COMMUNITY = Host.MAIN_URL+"/coin/community/%s";



    //获取server用户体系
    public static final String USER_SERVER = Host.MAIN_URL + "/user?type=app";

    //获取学院-新人学院数据
    public static final String BBS_COLLEGE = Host.MAIN_URL + "/college/list";

    //文库==研报
    public static final String BBS_LIBRARY_LIST = Host.MAIN_URL + "/library";

    //获取用户发帖
    public static final String USER_BBS_POST = Host.MAIN_URL + "/user/bbs";

    //学院详情页面
    public static final String BBS_COLLEGE_DETAIL = Host.MAIN_URL + "/college/info";

    //获取研报中心全部分类
    public static final String BBS_LIBRARY_ALL = Host.MAIN_URL + "/library/cate";

    //学院评论接口
    public static final String BBS_COLLEGE_COMMENT = Host.MAIN_URL + "/college/comment";
    // TODO: 2018/10/15
    //退出登录
//    public static final String LOGIN_OUT = Host.MAIN_URL + "/logout";
    public static final String LOGIN_OUT = Host.MAIN_URL + "/v1/logout";

    //学院专题列表
    public static final String BBS_COLLEGE_TOPICLIST = Host.MAIN_URL + "/special/topic";

    //学院专题列表列表
    public static final String BBS_COLLEGE_TOPICLIST_LIST2 = Host.MAIN_URL + "/special/topic/list";

    //学院书城
    public static final String BBS_BOOKS = Host.MAIN_URL + "/books";

    //作者列表
    public static final String AUTHOR_LIST = Host.MAIN_URL + "/news/authors";

    //板块页面
    public static final String COINS_PLATE = Host.MAIN_URL + "/plate";


    //市场
    public static final String COINS_MARKET = Host.MAIN_URL + "/exchange";

    //请求全局汇率
    public static final String ALL_RATE = Host.MAIN_URL + "/exchange_rate";

    //持币
    public static final String HOLD_COIN = Host.MAIN_URL + "/hold";
    //持币替换上面的老接口 通过coinkey来请求
    public static final String NEW_HOLD_COIN = Host.MAIN_URL + "/v1/hold";
    //清空我的消息中的用户消息
    public static final String CLEAR_MESSAGE = Host.MAIN_URL + "/message/";


    //F10代码
    public static final String CODE = Host.MAIN_URL + "/hold/github?name=%s&full_name=%s";
    //新F10代码替换上面的接口 使用coinKey请求数据
    public static final String NEW_CODE = Host.MAIN_URL + "/v1/hold/github/%s";
    //F10代码排行列表
    public static final String CODE_RANK = Host.MAIN_URL + "/hold/github/ranking?start=%d&end=%d";

    //链吧列表
    public static final String COINS_CHAINBAR = Host.MAIN_URL + "/ranking/info/";
    public static final String COINS_EXCHANGEBAR = Host.MAIN_URL + "/exchange/ranking/info/";

    //微博下twitter数据
    public static final String NEWS_TWITTER = Host.MAIN_URL + "/newsletter/twitter";

    //综合排行数据
    public static final String MARKET_RANK = Host.MAIN_URL + "/ranking/market";

    //热门搜索
    public static final String HOT_SEARCH_NET = Host.MAIN_URL + "/v1/search/hot/tags";

    //空投活动
    public static final String AIRDROP_ACTIVITY = Host.MAIN_URL + "/happy/activity/list";

    //指数详情
    public static final String INDEX_DETAIL = Host.MAIN_URL + "/indexs";
    //指数详情
    public static final String INDEX_KLINE = Host.MAIN_URL + "/indexs/kline";
    //快讯次级菜单tab
    public static final String FAST_TAB  = Host.MAIN_URL+"/v1/flash/keywords";
    //推送管理
    public static final String PUSH_MANAGER = Host.MAIN_URL+"/message/push/%s";
    //获取是否有新消息
    public static final String MESSAGE_NEW = Host.MAIN_URL+"/message/new";

    //点赞接口
    public static final String BBS_LIKE = Host.MAIN_URL+"/bbs/point";
    //任务中心
    public static final String COIN_CENTER = Host.MAIN_URL+"/task/info";
    //任务中心签到
    public static final String TASK_SIGNIN = Host.MAIN_URL+"/task/sign";
    //金币领取明细
    public static final String COIN_GOT_DETAIL = Host.MAIN_URL+"/task/gold/list";
    //金币商城
    public static final String GOLD_SHOP = Host.MAIN_URL+"/gold/shop/info";
    //金币兑换记录
    public static final String CONVERSION_HISTORY = Host.MAIN_URL+"/gold/conversion";
    //猜涨跌
    public static final String GAMBLE = Host.MAIN_URL+"/gold/gamble/%s/%s";
    //刮奖
    public static final String SCRATCH = Host.MAIN_URL+"/gold/scratch";
    //任务中心任务是否完成
    public static final String TASK_COMPLETE = Host.MAIN_URL+"/task/done/%d";

    //搜索新接口
    public static final String SEARCH_BANNER = Host.MAIN_URL+"/v1/search/banner";

    //搜索结果页交易所
    public static final String SEARCH_EXCHANGE = Host.MAIN_URL+"/v1/search/exchange/exchanges";
    //搜索获取联想词接口
    public static final String GET_ASSOCIATIONAL_WORD = Host.MAIN_URL+"/v1/search/hot/words";
    //论坛学院下的学院板块
    public static final String COLLEGE_COLLEGE = Host.MAIN_URL+"/forum/course/course-index";
    //论坛学院文库板块
    public static final String COLLEGE_LIBRARY = Host.MAIN_URL+"/forum/ds-docinfo/index-list";
    //企业内训
    public static final String COMPANY_TRAIN = Host.MAIN_URL+"/forum/course/course-company";
    //线下培训详情
    public static final String COURSE_OFFLINE= Host.MAIN_URL+"/forum/course/course-offline";
    //线下培训列表
    public static final String OFFLINE_LIST=Host.MAIN_URL+"/forum/course/index-list";
    //讲师列表
    public static final String TEACHER_LIST=Host.MAIN_URL+"/forum/course/teacher";
    //学员评价列表
    public static final String STUDENT_REVIEWS = Host.MAIN_URL+"/forum/course-comment/list";
    //图书首页列表
    public static final String BOOKS = Host.MAIN_URL+"/forum/book/index-list";

    //个人中心评论
    public static final String USER_COMMENTS = Host.MAIN_URL + "/im/user/userCenterComments";

    public static final String CHAIN_THING_URL = IS_TEST_ENV ? "http://test-m.chainnode.com/mall" : "https://m.chainnode.com/mall";
    //个人主页
    public static final String PERSONAL_HOME = "https://m.chainnode.com/user/";
    //矿场页面
    public static final String MINING_HOME = "https://www.8btc.com/farms/";
    //市场数据页面
    public static final String DATA_CHART_HOME = IS_TEST_ENV ? "http://test-m.qkl123.com/data" : "https://m.qkl123.com/data";

}
